<?php

	// TITLE: person
	// FILE: scafolding/listPerson.php
	// AUTHOR: AUTOGEN
	// CREATED: 2015/02/18 11:14:31
	// DESCRIPTION: 
	// REQUIREMENTS: 

?>
<h2>person</h2>
<hr>
<form method="GET" action="index.php">
	<input type="hidden" id="dir" value="<?php echo $dir; ?>">
	<input type="hidden" id="sub" value="<?php echo $sub; ?>">
	<input type="hidden" id="act" value="view">
</form>
<table>
	<thead>
		<tr>
			<th>id</th>
			<th>title_id</th>
			<th>first_name</th>
			<th>last_name</th>
			<th>status_id</th>
			<th>gender</th>
			<th>dob</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($fields as $field)  { ?>
		<tr onclick="goto('<?php echo $person->getId(); ?>');">
			<td><?php echo $person->getId(); ?></td>
			<td><?php echo $person->getTitleId(); ?></td>
			<td><?php echo $person->getFirstName(); ?></td>
			<td><?php echo $person->getLastName(); ?></td>
			<td><?php echo $person->getStatusId(); ?></td>
			<td><?php echo $person->getGender(); ?></td>
			<td><?php echo $person->getDob(); ?></td>
		</tr>
	<?php } ?>
	</tbody>
</table>
